﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace newTurtle8
{
    class OpenImageFileDialog
    {
        OpenFileDialog dlg = new OpenFileDialog();
        public string FileName { get { return dlg.FileName; } }
        public OpenImageFileDialog()
        {
            dlg.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.MyPictures);
            dlg.Title = "Select image";
            dlg.Filter = "All files (*.*)|*.*|Jpeg|*.jpeg|Jpg|*.jpg|Gif|*.gif |Bmp|*.bmp";
        }

        public DialogResult ShowDialog()
        {
            return dlg.ShowDialog();
        }
    }
}
